//
//  CommentInputView.h
//  DebugDemo
//
//  Created by XFB on 2019/1/11.
//  Copyright © 2019年 ZhouCheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CommentTextView, CommentInputView;

@protocol CommentInputViewDelegate <NSObject>

/**
 输入框高度变化

 @param commentInputView 输入框
 @param textViewHeight 输入框的高度
 */
- (void)commentInputView:(CommentInputView *)commentInputView
 didChangeTextViewHeight:(CGFloat)textViewHeight;


/**
 发送输入框文字

 @param commentInputView 输入框
 @param sendTextString 发送文字
 */
- (void)commentInputView:(CommentInputView *)commentInputView
          sendTextString:(NSString *)sendTextString;

@end


NS_ASSUME_NONNULL_BEGIN

@interface CommentInputView : UIView

@property (nonatomic, strong) CommentTextView *textView;
@property (nonatomic, strong) UIButton *sendButton;
@property (nonatomic, strong) UIView *lineView;

@property (nonatomic, weak) id <CommentInputViewDelegate> delegate;

@end

NS_ASSUME_NONNULL_END



@interface CommentTextView : UITextView

@property (nonatomic, copy) NSString *placeholder;
@property (nonatomic, strong) UIColor *placeholderColor;

@end
